package cn.ekuma.rabbit.imp;

import java.util.List;

import com.openbravo.data.basic.BasicException;

import cn.ekuma.rabbit.ModelManager;
import cn.ekuma.rabbit.spi.I_Model;
import cn.ekuma.rabbit.spi.I_ModelCommand;
import cn.ekuma.security.I_SecurityManager;

public abstract class AbstractModel implements I_Model{

	protected ModelManager manager;
	protected boolean able;

	@Override
	public List<String> getModelDependents() {
		return null;
	}

	@Override
	public I_SecurityManager getModelSecurityManager() {
		// TODO Auto-generated method stub
		return null;
	}
	
	@Override
	public void init(ModelManager manager) throws BasicException {
		this.manager=manager;
		able=true;
	}

	@Override
	public boolean isAble() {
		return able;
	}

	@Override
	public ModelManager getManager() {
		return manager;
	}

	@Override
	public boolean isCommandSupt(String commandName) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public void execCommand(I_ModelCommand mode) {
		// TODO Auto-generated method stub
	}
	
}
